package com.zh.async.exception;

import lombok.Data;

/**
 * @desc:
 * @Author：zhanghang
 * @Date：2025/8/24 16:26
 */
@Data
public class AsyncException extends RuntimeException {

    private String code;
    private String message;
    private Throwable cause;

    public AsyncException(String message) {
        super(message);
        this.message = message;
    }
    public AsyncException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
    public AsyncException(String message, Throwable cause) {
        super(message, cause);
        this.message = message;
        this.cause = cause;
    }
    public AsyncException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
        this.message = message;
        this.cause = cause;
    }
}
